//
//  LGWeb.h
//  UniverseProject
//
//  Created by king on 2018/11/23.
//  Copyright © 2018年 Cloud2209. All rights reserved.
//


#import <WebKit/WebKit.h>
#import <UIKit/UIKit.h>



@protocol LGWebDelegate <NSObject>

- (void)webView:(WKWebView *)webView LoadResult:(BOOL)result webH:(CGFloat)webH;

@end


@interface LGWeb : UIView

@property (copy,nonatomic) NSString *target_url;
@property (nonatomic, weak) id<LGWebDelegate> webdelegate;
@property (nonatomic, strong) WKWebView *webView;

//是否需要web自适应高度
@property (nonatomic, assign)BOOL heightFix;



/// 加载本地文件内容
/// @param content <#content description#>
- (void)avtivityLoadWithContent:(NSString *)content;

@end
